package top.kaoshanji.r2ch07h;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 代码清单-r2ch07h-263页a：增强问题测试
 * @author kaoshanji
 * ^_^
 * create time 2025/5/8 14:40
 */
public class AopAwareContext {

    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("r2ch07h/beans-aware.xml");

        Waiter waiter = (Waiter)context.getBean("waiter");

        waiter.serveTo("Join");
        waiter.greetTo("Join");

    }

}
